﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace ScrumMagic.Sprint
{
    /// <summary>
    /// Interaction logic for SprintListRibbon.xaml
    /// </summary>
    public partial class SprintListRibbon : Window
    {
        public SprintListRibbon()
        {
            InitializeComponent();
        }


        private void OnRibbonCommandCanExecute(object sender, System.Windows.Input.CanExecuteRoutedEventArgs e)
        {
            e.CanExecute = true;
        }

        private void RibbonCommandFind(object sender, EventArgs e)
        {
            if (FindButtonClicked != null)
            {
                FindButtonClicked(sender, new TextEventArgs(textBox.Text));
            }
        }

        public event EventHandler<TextEventArgs> FindButtonClicked;

        public event EventHandler AddButtonClicked;

        private void RibbonAddButtonClick(object sender, RoutedEventArgs e)
        {
            if (AddButtonClicked != null)
            {
                AddButtonClicked(sender, e);
            }
        }

    }
}
